<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="renderer" content="webkit" />
		<meta name="robots" content="index, follow" />
		<title>会员中心</title>
		<meta name="keywords" content="">
		<meta name="description" content="">
		<meta name="author" content="order by website" />
		<script type="text/javascript" src="__XIAOHE__/js/jquery.min.js"></script>
		<script src="__XIAOHE__/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa"
		 crossorigin="anonymous"></script>
		<script src="__XIAOHE__/js/swiper.min.js" type="text/javascript" charset="utf-8"></script>
		<link rel="stylesheet" type="text/css" href="__XIAOHE__/css/bootstrap.min.css" media="screen" />
		<link rel="stylesheet" type="text/css" href="__XIAOHE__/css/style.css" />
		<link rel="stylesheet" type="text/css" href="__XIAOHE__/css/swiper.min.css" />

				<!-- 引入样式文件 -->
		<link rel="stylesheet" type="text/css" href="__XIAOHE__/yuye/index.css">
		<!-- 引入 Vue 和 Vant 的 JS 文件XiaoHe QQ496631085  -->
		<script src="__XIAOHE__/yuye/vue.min.js"></script>
		<script src="__XIAOHE__/yuye/vant.min.js"></script>
		
	</head>
	<body style="background-color: #FFFFFF;">

		<div class="row">
			<div class="col-xs-12" style="padding: 0;">
				<div class="yywlmembercentre1">
					<div class="yywlmembercentre1a">
						<div class="yywlmembercentre1a1"><img src="{$wxuser.head_url}" ></div>
						<div class="yywlmembercentre1a2">
							<div class="yywlmembercentre1a2a">
							<?php if(!empty($wxuser['name'])) {echo $wxuser['name'];}else{ echo base64_decode($wxuser['nickname']);}?>
							</div>
							<div class="yywlmembercentre1a2b">{$wxuser.tel}</div>
						</div>
					</div>
					<div class="yywlmembercentre1b">
						
						<div class="yywlmembercentre1b1">
							<div class="yywlmembercentre1b1a"><img src="__XIAOHE__/images/wlmembercentre4.jpg" ></div>
							<div class="yywlmembercentre1b1b">公司名称</div>
							<div class="yywlmembercentre1b1c">
								<input type="text" id="ltdname"  value="{$wxuser.ltdname}" /><!-- readonly="readonly"  -->
							</div>
							<div class="yywlmembercentre1b1d"><img src="__XIAOHE__/images/wlmembercentre3.jpg" ></div>
						</div>
						<div class="yywlmembercentre1b1">
							<div class="yywlmembercentre1b1a"><img src="__XIAOHE__/images/wlmembercentre5.jpg" ></div>
							<div class="yywlmembercentre1b1b">房间号</div>
							<div class="yywlmembercentre1b1c">
								<input type="text" id="room"  value="{$wxuser.room}" /> <!-- readonly="readonly"  -->
							</div>
							<div class="yywlmembercentre1b1d"><img src="__XIAOHE__/images/wlmembercentre3.jpg" ></div>
						</div>
						<div class="yywlmembercentre1b1">
							<div class="yywlmembercentre1b1a"><img src="__XIAOHE__/images/wlmembercentre6.jpg" ></div>
							<div class="yywlmembercentre1b1b">姓名</div>
							<div class="yywlmembercentre1b1c">
								<input type="text" id="name" value="{$wxuser.name}" />
							</div>
							<div class="yywlmembercentre1b1d"><img src="__XIAOHE__/images/wlmembercentre3.jpg" ></div>
						</div>

						<!-- <div class="yywlmembercentre1b1">
							<div class="yywlmembercentre1b1a"><img src="__XIAOHE__/images/wlmembercentre2.jpg" ></div>
							<div class="yywlmembercentre1b1b">手机</div>
							<div class="yywlmembercentre1b1c">
								<input type="text" id="tel" value="{$wxuser.tel}" />
							</div>
							<div class="yywlmembercentre1b1d"><img src="__XIAOHE__/images/wlmembercentre3.jpg" ></div>
						</div> -->

						<div class="yywlmembercentre1b2">
							<button type="button" id="xiaohe">确认修改</button>
						</div>
					</div>


					<script type="text/javascript">
						$("#xiaohe").click(function(){
						    $.post("/api/yuye/update_user",{
								name:$("#name").val(),
								// tel:$("#tel").val(),
								ltdname:$("#ltdname").val(),
								room:$("#room").val()
								
							},function(data,status){
						        // alert("Data: " + data + "nStatus: " + status);
						        if(data.code>0){
						        	alert('修改成功');
						        	window.location.reload();
						        }else{
						        	alert('修改失败：'+data.msg);
						        }
						    });
						});
					</script>
				</div>
			</div>
		</div>
	</body>
</html>
